//
//  GeneralManagerViewController.h
//  Wallets Manager
//
//  Created by Tung Nguyen on 9/26/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddIncomeViewController.h"
#import "Global.h"
#import "WalletsViewController.h"
#import "folyAppDelegate.h"
#import "CustomAlertView.h"
#import "AddDebtViewController.h"
#import "AddLoanViewController.h"
#import "AddExpenseViewController.h"
#import "SNPopupView.h"
#import "ViewIncomeViewController.h"
#import "ViewExpenseViewController.h"
#import "AJNotificationView.h"
#import "IncomeExpenseDetailViewController.h"
#import "Global.h"

@interface GeneralManagerViewController : UIViewController <UIScrollViewDelegate,UIAlertViewDelegate,UITableViewDataSource,UITableViewDelegate,SNPopupViewModalDelegate>
{
    int currentFrameIndex;
    NSMutableArray *dateArray;
    UITableView *incomeExpenseTableView;
    UIButton *incomeExpenseLoadMoreButton;
    UITableView *loanDebtTableView;
    UIButton *loanDebtLoadMoreButton;
   
    NSMutableArray *dateSectionKey;
    
    NSMutableArray *allDateSection;
    NSDate *today;
    
    SNPopupView		*popup;
    NSIndexPath     *currentIndexPath;
    
    int incomeRowNumber;
    int expenseRowNumber;
    //---------------KODAK------------------
    int loanRowNumber;
    int debtRowNumber;
    
    Income *currentIncome;
    Expense *currentExpense;
    //---------------KODAK------------------
    Loan *currentLoan;
    Debt *currentDebt;

    NSMutableArray *incomeArray;
    NSMutableArray *expenseArray;

    //---------------KODAK------------------
    NSMutableArray *loanArray;
    NSMutableArray *debtArray;
}
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
- (IBAction)backButtonPressed:(id)sender;
- (IBAction)addButtonPressed:(id)sender;
- (IBAction)editButtonPressed:(id)sender;
- (IBAction)deleteButtonPressed:(id)sender;
- (IBAction)viewButtonPressed:(id)sender;


@property (weak, nonatomic) IBOutlet UIButton *backButton;

@property (strong, nonatomic) IBOutlet UIView *popUpView;

@end
